package com.codeiy.entity.meta;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.codeiy.entity.base.BaseEntity;
import lombok.Data;

@Data
public class MetaField extends BaseEntity {
    @TableId(value = "field_id", type = IdType.ASSIGN_ID)
    private Long fieldId;
    private Long tenantId;
    private String projectCode;
    private String objectCode;
    private String fieldCode;
    private String fieldName;
    private String defaultValue;
    /**
     * 数据类型
     * ID: 自动编号、String: 文本、Enum: 枚举、Number: 实数、Date: 日期时间、Integer: 整数、 Image: 图片、 File文件、 Location: 地理位置
     */
    private String dataType;
    private Integer maxLength;
    private Integer numericScale;
    private Integer dataFieldPos;
    private String relateToOne;
    private String relateToMany;
    private Boolean requireFlag;
    private Boolean uniqueFlag;
    private Boolean indexFlag;
    private Boolean deleteFlag;
    private Boolean systemFlag;
    private Integer sortNo;
}
